
#ifndef _GAME_H
#define _GAME_H

//default
#include <d3d9.h>
#include <d3dx9.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <dsound.h>
#include <dxerr.h>
#include <dsound.h>
#include <windows.h>
#include <tchar.h>
#include <Vfw.h>

//custom
#include "dxgraphics.h"
#include "player.h"
#include "Ro.h"
#include "dxinput.h"
#include "Mp3Player.h"

//application title
#define APPTITLE "Catch Chicken Eggs"

//screen setup
#define FULLSCREEN 0      //1 = full screen, 0 = windowed
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480

//macros to read the keyboard asynchronously
#define KEY_DOWN(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0)
#define KEY_UP(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0)

//function prototypes
int Game_Init(HWND);
void Game_Run(HWND);
void Game_End(HWND);

#endif

